package com.google.android.gms.common.api;

import android.os.Parcel;
import android.os.Parcelable.Creator;
import com.google.android.gms.common.annotation.KeepForSdk;
import com.google.android.gms.common.internal.ReflectedParcelable;
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable.Class;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable.Constructor;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable.Field;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable.Param;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable.VersionField;
import o.aop;
import o.apa;
import o.apc;

@KeepForSdk
@Class(creator = "ScopeCreator")
public final class Scope extends AbstractSafeParcelable implements ReflectedParcelable {
    public static final Creator<Scope> CREATOR = new aop();
    @Field(getter = "getScopeUri", id = 2)
    private final String ˋ;
    @VersionField(id = 1)
    private final int ˏ;

    @Constructor
    public Scope(@Param(id = 1) int i, @Param(id = 2) String str) {
        apa.ˋ(str, "scopeUri must not be null or empty");
        this.ˏ = i;
        this.ˋ = str;
    }

    @KeepForSdk
    public final String ˋ() {
        return this.ˋ;
    }

    public final boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj instanceof Scope) {
            return this.ˋ.equals(((Scope) obj).ˋ);
        }
        return false;
    }

    public final int hashCode() {
        return this.ˋ.hashCode();
    }

    public final String toString() {
        return this.ˋ;
    }

    public final void writeToParcel(Parcel parcel, int i) {
        int ॱ = apc.ॱ(parcel);
        apc.ॱ(parcel, 1, this.ˏ);
        apc.ˎ(parcel, 2, ˋ(), false);
        apc.ˎ(parcel, ॱ);
    }
}
